package cn.liulingfengyu.structuralpattern.decoratorpattern;

/**
 * 具体装饰器A
 */
public class ConcreteDecoratorA extends Decorator {
    public ConcreteDecoratorA(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedBehaviorA();
    }

    private void addedBehaviorA() {
        System.out.println("具体装饰器A的附加行为");
    }
}